package com.szcinda.call.service;

import lombok.Data;

import java.io.Serializable;
import java.util.Objects;

@Data
public class HeartBreakData implements Serializable {
    private String uuid;
    private String ip;
    private String userName; // 登录账号


    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        HeartBreakData that = (HeartBreakData) o;
        return Objects.equals(uuid, that.uuid) &&
                Objects.equals(ip, that.ip) &&
                Objects.equals(userName, that.userName);
    }

    @Override
    public int hashCode() {
        return Objects.hash(uuid, ip, userName);
    }
}
